home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / utility / ath_hwr1.zip / MRIP130.ZIP / UTILS / LIBS.TXT < prev    next >
Text File  |  1996-03-26  |  18KB  |  517 lines

  1. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  2. ▒    ▒ ▒▒ ▒   ▒▒ ▒▒▒ ▒    ▒   ▒▒   ▒▒▒   ▒   ▒▒   ▒ ▒▒ ▒ ▒▒    ▒   ▒▒  ▒▒  ▒  ▒
  3. ▓▓▓▓ ▓ ▓▓ ▓ ▓▓▓▓ ▓▓▓ ▓ ▓▓ ▓ ▓▓ ▓ ▓▓ ▓▓ ▓▓▓ ▓▓ ▓ ▓▓▓ ▓▓ ▓ ▓▓▓▓▓ ▓ ▓▓▓ ▓▓ ▓ ▓ ▓ ▓
  4. ████ █ ██ █ ████ █ █ █ ██ █ ██ █ ███ █ ███ █ ██ ███ ██ █ █████ █ ███ ██ █ █ █ █
  5.     ░ ░░░░ ░░░  ░ ░ ░ ░  ░ ░  ░ ░   ░ ░░░ ░ ░░ ░░░ ░  ░ ░     ░ ░░░ ░░░░ ░ ░ ░
  6.     ▓ ▓  ▓ ▓    ▓ ▓ ▓ ▓  ▓ ▓  ▓ ▓   ▓ ▓   ▓  ▓ ▓   ▓  ▓ ▓     ▓ ▓   ▓  ▓ ▓   ▓
  7.     █ █  █ ███  ██ ██ ████ █  █ ████  ███ █  █ █   ████ ███   █ ███ █  █ █   █
  8. ≡≡≡≡▒≡▒≡≡▒≡▒▒▒≡≡▒▒≡▒▒≡▒▒▒▒≡▒≡≡▒≡▒▒▒▒≡≡▒▒▒≡▒≡≡▒≡▒≡≡≡▒▒▒▒≡▒▒▒≡≡≡▒≡▒▒▒≡▒≡≡▒≡▒≡≡≡▒≡
  9. ====▒=▒▒▒▒=▒====▒=▒=▒=▒==▒=▒==▒=▒===▒=▒===▒==▒=▒===▒==▒=▒=====▒=▒===▒▒▒▒=▒===▒=
  10. ----▒-▒--▒-▒▒---▒-▒-▒-▒--▒-▒--▒-▒---▒-▒▒--▒-▒--▒▒▒-▒--▒-▒-----▒-▒▒--▒--▒-▒-▒-▒-
  11. -▒▒▒▒-▒--▒-▒▒▒--▒---▒-▒▒▒▒-▒▒▒--▒▒▒▒--▒▒▒-▒▒▒▒-▒▒▒-▒--▒-▒--▒▒▒▒-▒▒▒--▒▒--▒▒-▒▒-
  12. ···············································································
  13.  
  14.                                Library Structures
  15.                       Figured out by ·─═■│Æ∩■═─· @ T(/\)T
  16.                                  Revision  1.2
  17.                             Tuesday, March 26, 1996
  18.                             Email: baccan@isanet.it
  19.  
  20.  
  21.  This document has been written only because there isn't any about these
  22.  structures... and writing down things helps remembering them!!
  23.  
  24.  Use these informations in any way you want, e.g. make your own ripper,
  25.  like I have done (MultiRipper 1.30 already extract these!)
  26.  
  27.  Libraries are found on EXE files ,tipically on demos.
  28.  These files are made of several files linked together to form a single EXE.
  29.  The main program searches every part needed inside itself using an index,
  30.  made at least with names and lengths of every single file that forms the
  31.  main EXE.
  32.  Sometimes library are not linked to the main EXE but are separate huge
  33.  data files, actually containing all necessary files. In demos this is
  34.  quite unused, I found only few ones using external libs, and they're almost
  35.  older versions of the EXE type libs. External libs are mostly found on games
  36.  like DOOM and DARK FORCES (ever heard of *.WAD files???)
  37.  Well, not surprisingly, also these external libs contain an index.
  38.  The structure of this index, the Lib structure index, can also be used to
  39.  rip off the single files.
  40.  Unluckily, not all structures all identical, but there are few programmers
  41.  that make standard libraries to reduce the hassle of linking demoparts
  42.  together , so they're quite easy to decode...
  43.  
  44.  Lib Structures described in this document: (11)
  45.  
  46.  1)  Future Crew Lib
  47.  2)  Realtech Lib (EXE)
  48.  2a) Realtech Lib (DAT)
  49.  3)  Psychic Link FLIB
  50.  4)  ElectroMotive Force LIB
  51.  5)  The Coexistence XLink 2.02
  52.  6)  The Coexistence XLink 1.0
  53.  7)  Pelusa Resource Compiler 0.1ß
  54.  8)  ACME Virtual File System 1.0ß
  55.  9)  LucasArts GOB files
  56.  10) iD Software WAD files
  57.  11) Cascada Resource file
  58.  
  59.  
  60.  
  61.  *■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■*
  62.  
  63.                           ┌─· ┌───────────────┐ ·─┐
  64.                           ╘══[┤Future Crew Lib├]══╛
  65.                               └───────────────┘
  66.  
  67.  *■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■*
  68.  
  69. ("Unreal" , "Panic" , "FishTro" , "The Party'92" tested)
  70.  
  71. Last 4 bytes in Future crew's (old) demos are an absolute offset;
  72. if seeking to this offset there is "└/╚ " (C02FC800) we have a Future crew
  73. library structure... and exactly:
  74. ---------------------------------------
  75. 0: Lib Header: (dWord) Magic C02FC800
  76. 4: # of records (dWord)
  77. 8: start of lib (dWord)
  78. { Record structure:
  79.   Filename: 12 Bytes
  80.   Filler  :  4 Bytes
  81.   Start off  dWord (absolute offset)
  82.   Lenght     dWord
  83. } * # of records
  84. start of header (dWord) , absolute offset in file
  85. EOF
  86.  
  87.  
  88.  
  89.  
  90.  *■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■*
  91.  
  92.                      ┌─· ┌───────────────────────────┐ ·─┐
  93.                      ╘══[┤Realtech Lib (in EXE files)├]══╛
  94.                          └───────────────────────────┘
  95.  
  96.  *■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■*
  97.  
  98. ("DX Project" , "Aquaphobia" and "Countdown" tested )
  99.  
  100. Last 4 bytes in RealTech's Demos are a LIB dimension; seeking backwards
  101. with this value will find "REALTECH95" (and now "REALTECH96" maybe...)
  102. ------------------
  103. 00h: Lib Magic "REALTECH95"
  104. 0Ah: "=" 03Dh (unknown)
  105. 0Bh: # of Records (Word)
  106. 0Dh: structure lenght (dWord) (from 00h to start of 1st file)
  107. { Record structure:
  108.   Filename: 12 Bytes
  109.   filler:    1 byte
  110.   Lenght:      dWord
  111. } * # of Records
  112. Start of file pointed by record #1
  113. ....
  114. Start of last file
  115. last4bytes  (lib off)
  116. EOF
  117.  *■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■*
  118.  
  119.                      ┌─· ┌───────────────────────────┐ ·─┐
  120.                      ╘══[┤Realtech Lib (in DAT files)├]══╛
  121.                          └───────────────────────────┘
  122.  
  123.  *■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■*
  124.  
  125. ("Megamix" and "Dimension" tested)
  126.  
  127. The structure is the same but the file starts with "REALTECH94", so it's a
  128. kinda older version of the EXE type (REALTECH95)
  129. Please refer to the EXE type structure, assuming that lib magic is found
  130. at offset 0 of file.
  131.  
  132.  
  133.  
  134.  *■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■*
  135.  
  136.                          ┌─· ┌─────────────────┐ ·─┐
  137.                          ╘══[┤Psychic Link FLIB├]══╛
  138.                              └─────────────────┘
  139.  
  140.  *■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■*
  141.  
  142. ("ACT1" and "Juice" tested)
  143.  
  144. Last 8 bytes in Psychic Link's Demos are a dWord + "FLIB"
  145. This dWord is the # of Records , and every rec is 20h bytes long, so lib
  146. start is (nRec*32)+8 bytes from EOF
  147.  
  148. { Record structure:
  149.   Filename: 12 Bytes
  150.   filler:    4 bytes
  151.   Start off  dWord (absolute offset)
  152.   Lenght     dWord
  153.   Unknown    dWord
  154.   Unknown    dWord
  155. } * # of Records
  156. # of Records
  157. Lib Magic "FLIB"
  158. EOF
  159.  
  160.  
  161.  
  162.  
  163.  *■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■*
  164.  
  165.                       ┌─· ┌───────────────────────┐ ·─┐
  166.                       ╘══[┤ElectroMotive Force LIB├]══╛
  167.                           └───────────────────────┘
  168.  
  169.  *■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■*
  170.  
  171. ("Verses" , "ASM95 InvTro" and "Caero" tested)
  172.  
  173. Last 12 bytes in EMF demos are 2 dWords + "EMF!"
  174. The 1st dWord is the # of Records
  175. The 2nd dWord is Abs offset of start of lib
  176.  
  177. { Record structure:
  178.   Filename: 12 Bytes
  179.   filler:    4 bytes                        ┌
  180.   Start off  dWord (absolute offset)────────┤not very accurate!!
  181.   Lenght     dWord                          │sometimes is 1 byte
  182.   Filler     dWord                          │after realstart !!
  183.   Unknown    dWord (Start off duplicate?)   │(at least in Verses)
  184. } * # of Records                            └
  185. # of Records
  186. start of Lib abs Offset
  187. Lib Magic "EMF!"
  188. EOF
  189.  
  190.  
  191.  
  192.  
  193.  *■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■*
  194.  
  195.                      ┌─· ┌──────────────────────────┐ ·─┐
  196.                      ╘══[┤The Coexistence XLink 2.02├]══╛
  197.                          └──────────────────────────┘
  198.  
  199.  *■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■▀■▄■*
  200.  
  201. ("TC-BABES" (T.C.),"Groove" (Fudge),"Hurtless" (TFL-TDV),"BLUES" (sYmptom),
  202.  "The Party 95" and many more tested)
  203.  
  204. First of all, this lib is NOT standard, but having thoughly tested it I can
  205. surely admit it's the best available! (... actually it's the ONLY one
  206. available because other Lib linkers have never been released!)
  207.  
  208. XLC 2.02 adds a standard loader of 2392 Bytes, already pklited+optimized
  209. This loader can be unpacked without problems, so we cannot use fixed offsets.
  210. If exelenght varies from 2300 to 2800 (original=2392; max unpacked=2750)
  211. is worth checking...
  212. Overlay starts with "XLé    " (0x584C0282 0x00000000)
  213. this is the header of lib (off 0)
  214.  
  215. Then a word indicates the # of records (nrec)
  216. another word is the # of exes to be exec